package com.example.demo99;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling // ✅ 关键注解：启用定时任务
@MapperScan("com.example.demo99.Mapper") // Spring 才知道你有哪些 Mapper 接口要注册成 Bean。
public class Demo99Application {

    public static void main(String[] args) {

        SpringApplication.run(Demo99Application.class, args);
        System.out.println("Hello World");
    }

}
